# from django.contrib import admin
from django.urls import path, include, re_path

from users.views import LoginView, RegisterView, LogoutView, ActiveUserView,ForgetView

urlpatterns = [
    # path('admin/', admin.site.urls),
    # 用户登录
    path('login/', LoginView.as_view(), name="user_login"),
    # 用户注册
    path('register/', RegisterView.as_view(), name="user_register"),
    # 忘记密码
    path('forget/', ForgetView.as_view(), name="user_forget"),
    # 用户登出
    path('logout/', LogoutView.as_view(), name="user_logout"),
    # 确认邮件
    re_path(r'^active/(?P<active_code>.*)/$', ActiveUserView.as_view(), name="user_active"),
    # 用于存储错误信息
    # path('error/', )
]
